package com.liang.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @name: WebSocketConfig
 * @author: 李昂
 * @date: 2020-12-11 21:02
 * @description：WebSocketConfig @EnableWebSocketMessageBroker注解开启websocket消息代理
 * @update: 2020-12-11 21:02
 */
@Configuration
public class WebSocketConfig {

    //开启WebSocket支持
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
